﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NetBay.Core.BusinessEntities;
using System.ServiceModel.DomainServices.Server.ApplicationServices;

namespace Rio.Applications.Web.Services.Authentication
{
    public class AuthenticationUser : IUser
    {
        public IEnumerable<string> Roles
        {
            get
            {
                return null;
            }

            set { }
        }

        private User _user;

        public AuthenticationUser(User u)
        {
            _user = u;
        }

        public string Name
        {
            get
            {
                return _user.Login;
            }
            set
            {
                _user.Login = value;
            }
        }
    }
}